package com.yushu.base.pojo.bo;

import java.io.Serializable;
import java.util.*;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yushu.common.configuration.spring.SpringMVCCustomJsonDateDeserializer;


/**
 * 
 * @author test
 * @CreateDate 2020-12-03 15:47:24
 */
@Data
@TableName("sys_log")
public class Log implements Serializable {
	private static final long serialVersionUID = 1L;
	//列开始
	@Getter
    @Setter		
	@TableId(value = "id", type = IdType.UUID)
	private String id;//主键
	@Getter
    @Setter			
	private String userId;//用户
	@Getter
    @Setter			
	private String title;//日志
	@Getter
    @Setter			
	private String url;//地址
	@Getter
    @Setter			
	private String moduleId;//模块
	@Getter
    @Setter			
	private String tableId;//表
	@Getter
    @Setter			
	private String params;//参数
	@Getter
	@Setter
	@JsonDeserialize(using = SpringMVCCustomJsonDateDeserializer.class)
	private Date createTime;//日志时间
	@Getter
    @Setter			
	private Integer executionTime;//执行时间
	@Getter
    @Setter			
	private String lgCountry;//国家
	@Getter
    @Setter			
	private String lgArea;//地区
	@Getter
    @Setter			
	private String lgRegion;//省份
	@Getter
    @Setter			
	private String lgCity;//城市
	@Getter
    @Setter			
	private String lgCounty;//区县
	@Getter
    @Setter			
	private String lgIsp;//互联网服务提供商
	@Getter
    @Setter			
	private String lgAddress;//详细地址
	//列结束







	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getCreateTime() {
	return this.createTime;
	}









}
